﻿#ifndef QUERY_H
#define QUERY_H
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
# pragma execution_character_set("utf-8")
#endif
#include <QWidget>
#include<QStandardItemModel>
#include<QSqlQuery>
#include"add.h"
namespace Ui {
class query;
}

class query : public QWidget
{
    Q_OBJECT

public:
    explicit query(QWidget *parent = nullptr);
    void queryInfo(int row,QSqlQuery query);
    void clearContent();
    ~query();

private slots:
    void on_pushButton_clicked();

    void on_cancelBtn_clicked();

private:
    Ui::query *ui;
    QStandardItemModel model;
    add db;
};

#endif // QUERY_H
